home *** CD-ROM | disk | FTP | other *** search
- Path: howland.reston.ans.net!gatech!hookup!hookup!not-for-mail
- From: mskucher@vertex.tor.hookup.net (Murray S. Kucherawy)
- Newsgroups: comp.lang.c,comp.unix.osf.osf1
- Subject: What exactly does pclose() return?
- Date: 18 Jan 1996 19:07:36 -0500
- Organization: HookUp Communication Corporation, Oakville, Ontario, CANADA
- Message-ID: <4dmnc8$t0u@vertex.tor.hookup.net>
- NNTP-Posting-Host: vertex.tor.hookup.net
- NNTP-Posting-User: mskucher
-
- Does pclose() simply return the status of the child, or does it return one
- of those "wait" values where the status is really in the second byte of
- the return value? What's it *supposed* to do?
-
- For example, let's say I expect the exit status of a program to be
- 67 (like sendmail when it gets "no such user"). Should pclose()
- return 67, or 256*67?
-
- The man page on OSF/1 doesn't say either way, but the weak wording suggests
- the former, and I'm getting the latter. If I write my code to presume
- the latter, how portable is it going to be?
- --
- Murray S. Kucherawy ====================================== mskucher@hookup.net
- Engineering/Operations Manager HookUp Communication Corporation
- (905) 847-8000 NIC Handle "MSK" Oakville, Ontario, CANADA
- -- EMACS: Eight Megs And Constantly Swapping --
-